package com.six.order.dao;

import com.six.core.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.six.order.vo.OrderShopVo;
import com.six.order.vo.OrderUserVo;
import com.six.order.vo.dto.PayOrderVo;
import com.six.order.vo.dto.UserOrderVo;
import com.six.order.vo.dto.shopOrderVo;
import org.springframework.stereotype.Component;

import java.util.List;

/**
* @author 汪鹏
* @description 针对表【sto_order】的数据库操作Mapper
* @createDate 2023-03-04 09:10:31
* @Entity com.six.core.entity.Order
*/
@Component
public interface OrderMapper extends BaseMapper<Order> {

    List<UserOrderVo> userSelect(OrderUserVo orderUserVo);

    List<UserOrderVo> userSelect2(OrderUserVo orderUserVo);

    List<shopOrderVo> shopSelect(OrderShopVo orderShopVo);

    List<shopOrderVo> shopSelect2(OrderShopVo orderShopVo);

    /** 用户去支付定单，查询支付的定单详情*/
    List<PayOrderVo> payOrder(String orderId);

    /**根据id 查询goodsid 根据查询goodsid查询成交量*/
    Integer selectPaystateByGoodsid(String goodsid);




}




